package soccer.stats

import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
import com.google.common.base.Objects

class TeamInfoUrl {
    String sourceType
    String url

    static belongsTo = [
            team: Team
    ]

    static constraints = {
        sourceType nullable: false, inList: CH.config.com.singhanuvrat.soccerstats.infosources
        url nullable: false
        team nullable: false
    }

    def String toString() {
        return Objects.toStringHelper(this).add("Team", team).add("SourceType", sourceType).add("Url", url).toString()
    }
}
